Repository navigation
feat: add rust job worker with retries and visibility heartbeats - #1700
ferhatelmas wants to merge 4 commits into
Conversation
Signed-off-by: Ferhat Elmas <[email protected]>
6c0d540 to
013ddfa
Compare
Coverage Report for CI Build 43415171408Coverage remained the same at 87.657%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
There was a problem hiding this comment.
I reviewed this PR and didn't find any bugs. It's a large new crate with concurrency, timeout/abort and retry semantics, and it changes the public queue API, so a human look would still be worthwhile.
What was reviewed:
queuecrate: removal ofOutgoing::delay/check_send, the attribute round-trip in sqs.rs (both or neither string/binary rejected asInvalidResponse), and attribute bytes counted toward the 1 MiB per-message and per-batch limits.jobsworker: dispatch, heartbeat/timeout/grace handling, retry backoff capping, DLQ copy, and the shared Node payload fixture.- Not done: the ElasticMQ-backed
--ignoredtests were not run in this review.
Extended reasoning...
The change adds about 2,000 lines in a new Rust jobs crate (worker concurrency, visibility heartbeats, execution timeout with cancel and then abort, retry/DLQ policy). It also changes the queue transport's public types and SQS send/receive paths, plus CI and a Node test. It touches no auth, crypto or permission code. CODEOWNERS assigns every path to the storage team. Its size, the async concurrency and timing semantics, and the design choices (dropping per-message delay, retrying through visibility changes) need a human reviewer.
This review covers commit 6c0d540, which is no longer the latest commit on this pull request; later commits are not covered by it.
Signed-off-by: Ferhat Elmas <[email protected]>
7fc2a2c to
6a6ef98
Compare
Signed-off-by: Ferhat Elmas <[email protected]>
Signed-off-by: Ferhat Elmas <[email protected]>
What kind of change does this PR introduce?
feat
What is the current behavior?
The Rust workspace provides SQS transport primitives but has no job worker, handler dispatch, or worker-level retry policy.
What is the new behavior?
Adds a Rust job worker on top of the SQS transport:
Additional context
Queue provisioning is separate to follow up